<div class="dialogue" style="display:flex">
    <div class="content">
        <p><?php echo Yii::$app->request->get("msg","") ;?></p>
        <button onclick="hideDialogue()">关闭</button>
    </div>
</div>
<script type="text/javascript">
    let closePage = function(){
        try{
            window.close()
        }
        catch(e){}
        try{
            WeixinJSBridge.call('closeWindow');
        }
        catch(e){}
    }
    let showLoading = function(){
        $('.loading').css('display', 'flex')
    }
    let showDialogue = function(){
        $('.dialogue').css('display', 'flex')
    }
    let hideLoading = function(){
        $('.loading').hide()
    }
    let hideDialogue = function(){
        $('.dialogue').hide()
        closePage() ;
    }
</script>
